import android.databasesqlite.SQLiteOpenHelper;

public class SQLConnector {

 public static final String KEY_ROW = "_id";
 public static final String USER_NAME = "user_name";
 public static final String PASSWORD = "password";

 private static final String DATABASE_NAME = "LOGIN";
 private static final String DATABASE_TABLE = "userTable";
 private static final String DATABASE_NUM = 1;
 private DbHelper ourHelper;
 private SQLiteDatabase ourDatabase;
 
 private static class DbHelper extends SQLiteOpenHelper{
  public DbHelper(Context context){
   super(context, DATABASE_NAME, null, DATABASE_NUM )
  }

  public void onCreate(SQLDatabase db){
   db.execSQL("CREATE TABLE " + DATABASE_TABLE + " ("+
     KEY_ROW + " INTEGER PRIMARY KEY AUTOINCREMENT, " 
     + USER_NAME  + " TEXT NOT NULL"
     + PASSWORD + " TEXT NOT NULL);"
     
     );
  }
  //
  public void getUser(){
	  db.execSQL("SELECT " + USER_NAME + " ," + " PASSWORD " +  "FROM " + DATABASE_TABLE + " ;" );
  }

  public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion ){

  }
 
 
 public FooActivity(Context c){
  ourContext = c;
 }
 
 public FooActivity open(){
  ourHelper = new DbHelper(ourContext);
  ourDatabase = ourHelper.getWritableDatabase();
  return this;
 }
 
 public void close(){
  ourHelper.close();
 }
 
 public void createEntry(String userName, String password){
	 
 }
  
public HashMap getUser(){
	HashMap newHashMap = new HashMap();
	
	
}
 
}
